import os
import time
import unittest
from htmltestreport import HTMLTestReport
from script.app.test01_app_login_order import TestAppLoginOrder
from config import DIR_PATH

suite = unittest.defaultTestLoader.discover("./script/web") #加载多个
file_path = DIR_PATH + os.sep + "report" + os.sep + "auto.{}.html".format(time.strftime("%Y%m%d_%H%M%S"))
HTMLTestReport(file_path).run(suite)